package com.cj.mainmodule.repo.observable

import com.cj.mainmodule.bean.BaseRes
import com.cj.mainmodule.bean.ThePublicInfo
import io.reactivex.Observable
import retrofit2.http.GET

/**
 *created by chen jun
 *on 2021/5/24 18:07
 * 结合rxjava  返回类型是Observable
 */
interface ApiService {
    companion object{
        const val GET_CHAPTERS_PATH = "/wxarticle/chapters/json"
    }
    @GET(GET_CHAPTERS_PATH)
    fun getChapters():Observable<BaseRes<List<ThePublicInfo>>>
}